﻿using System;
using nyxwin.Common.Base.Utils;
using nyxwin.Data.Common;

namespace nyxwin.Data.Mail
{
    public class Mail
    {
        public int Id { get; set; }
        public string Nick { get; set; }
        public string Direction { get; set; }
        public bool Unread { get; set; }
        public bool UnreadOther { get; set; }
        public string Content { get; set; }
        public long Time { get; set; }
        public Active Active { get; set; }

        public Uri NickImageUrl
        {
            get { return new NickN(Nick); }
        }

        public DateTime DisplayTime
        {
            get { return new DateTimeN(Time); }
        }
    }
}